import login from '@/components/login'
import frame from '@/components/frame'
import Dashboard from "@/components/index"
import ApiManagement from "@/components/api"
import CompanyManagement from "@/components/company"
import selDepartment from "@/components/selDepartment"
import getSchedule from "@/components/schedule/getSchedule"
import createRegisterOrder from "@/components/order/createOrder/index"
import allOrder from "@/components/order/index"
import payManagement from "@/components/order/payManagement"
import appointment from "@/components/order/appointment"
import examine from "@/components/outpatientItems/examine"
import healthCheck from "@/components/health_check/health_check"
import createExamine from "@/components/health_check/createExamine"
import answerDetail from "@/components/health_check/answerDetail"
import createRegister from "@/components/register/createRegister"
import answerList from "@/components/answer/answer"
import createReportModule from "@/components/report/createReportModule"
import examineOfFinish from "@/components/report/examineOfFinish"
import report from "@/components/report/report"
import mall from "@/components/mall/store"
import product from "@/components/mall/product/productHome"
import mallGoods from "@/components/mall/mallGoods"
import draggablePage from  "@/components/examine/draggable"
import reportManage from "@/components/examine/reportManage"
import reportCreate from "@/components/examine/createReport"
import makeReportDataByExamine from "@/components/reportData/index"
import reportData from "@/components/reportData/reportData"
import reportList from "@/components/report/reportList"
import testManage from "@/components/test/testManage"
import jobs from "@/components/jobs/index"
import mallSale from "@/components/mall/sale"
import qrCode from "@/components/qrCode"
import courseManagement from "@/components/courseManagement"
import qrCodeSign from "@/components/courseManagement/qrCodeSign"
import issueReport from "@/components/examine/issueReport"
import baziIndex from "@/components/bazi/index"
import baziData from "@/components/bazi/baziData"
import stock from "@/components/stock"
import toPay from "@/components/order/payManagement/toPay"
import fileManager from "@/components/fileManager/index"
import choiceTest from "@/components/fileManager/choiceFiles"


const menuList =  [
  {
    name:"登陆",
    href:"/login",
    hidden:true,
    component: login
  },
  {
    name:"二维码展示",
    href:"/qrCodeSign",
    hidden:true,
    component: qrCodeSign
  },
  {
    name:"选部门",
    href:"/selDepartment",
    hidden:true,
    component: selDepartment
  },
  {
    name:"首页",
    href:"/index",
    icon:"regular/bookmark",
    parentComponent: frame,
    component: Dashboard
  },
  {
    name:"八字命理",
    href:"/bazi",
    icon:"adjust",
    component:frame,
    children:[
      {
        name:"八字查询",
        href:"/bazi/index",
        icon:"search",
        component:baziIndex
      },
      {
        name:"数据管理",
        href:"/bazi/dataManage",
        icon:"cog",
        component:baziData
      }
    ]
  },
  {
    name:"门诊排班",
    href:"/getSchedule",
    icon:"regular/bookmark",
    parentComponent: frame,
    component: getSchedule
  },
  {
    name:"创建挂号",
    href:"/createRegister",
    icon:"regular/bookmark",
    parentComponent: frame,
    component: createRegister
  },
  {
    name:"订单管理",
    href:"/orderManagement",
    icon:"regular/bookmark",
    component: frame,
    children:[
      {
        name:"所有订单",
        href:"/orderManagement/allOrder",
        icon:"cog",
        component:allOrder
      },
      {
        name:"创建订单",
        href:"/orderManagement/create",
        icon:"cog",
        component:createRegisterOrder
      },
    ]
  },
  {
    name:"支付管理",
    href:"/pay",
    icon:"regular/bookmark",
    component: frame,
    children:[
      {
        name:"支付列表",
        href:"/pay/pay-management",
        icon:"user",
        component: payManagement
      },
      {
        name:"支付页面",
        href:"/pay/toPay:payNo",
        icon:"user",
        hidden:true,
        component: toPay
      }
      ]
  },
  {
    name:"预约管理",
    href:"/appointment",
    icon:"regular/bookmark",
    parentComponent: frame,
    component: appointment
  },
  {
    name:"服务管理",
    href:"/item-management",
    icon:"cogs",
    component: frame,
    children:[
      {
        name:"中医体检进度",
        href:"/item/examine-management",
        icon:"cog",
        component:examine
      },
      {
        name:"中医体检结果",
        href:"/item/healthCheck",
        icon:"cog",
        component:healthCheck
      },
      {
        name:"答卷",
        href:"/item/answerList",
        icon:"cog",
        component:answerList
      },
      {
        name:"创建新体检",
        href:"/item/createExamine",
        hidden:true,
        component: createExamine
      },
      {
        name:"体检项详情",
        href:"/item/answerDetail/:itemId",
        icon:"user",
        hidden:true,
        component: answerDetail
      },
    ]
  },
  {
    name:'中医体检',
    href:'/examine',
    icon:'file-medical',
    component: frame,
    children:[
      {
        name:'体检管理',
        href:'/examine/report-data',
        icon:'file-alt',
        component: draggablePage
      },
      {
        name:'报告管理',
        href:'/examine/report-management',
        icon:'list-ol',
        component: reportManage
      },
      {
        name:'制作报告',
        href:'/examine/report-create/:reportDataId',
        icon:'brands/studiovinari',
        component: reportCreate,
        hidden: true
      }
    ]
  },
  {
    name:"报告管理",
    href:"/report-management",
    icon:"cogs",
    component: frame,
    children:[
      {
        name:"创建报告模板类型",
        href:"/report/createReportModule-management",
        icon:"cog",
        component:createReportModule
      },
      {
        name:"待生成报告的体检",
        href:"/report/examineOfFinish-management",
        icon:"cog",
        component:examineOfFinish
      },
      {
        name:"空白报告本告",
        href:"/report/report-lookthrough/:reportId",
        icon:"cog",
        hidden:true,
        component:report
      }
    ]
  },
  {
    name:"文件管理",
    href:"/file-manager",
    icon:"regular/folder",
    component: frame,
    children:[
      {
        name:"文件浏览器",
        href:"/file-manager/explorer",
        icon:"regular/folder-open",
        component: fileManager
      },
      {
        name:"选择文件demo",
        href:"/file-manager/choice-test",
        icon:"stethoscope",
        component: choiceTest
      }
    ]
  },
  {
    name:"商城管理",
    href:"/mall-management",
    icon:"cogs",
    component: frame,
    children:[
      {
        name:"商铺管理",
        href:"/mall/store-management",
        icon:"cog",
        component:mall
      },
      {
        name:"产品管理",
        href:"/mall/product-management",
        icon:"cog",
        component:product
      },
      {
        name:"商品管理",
        href:"/mall/goods-management",
        icon:"cog",
        component:mallGoods
      },
      {
        name:"仓储",
        href:"/mall/stock-management",
        icon:"cog",
        component:stock
      },
      {
        name:"商铺活动",
        href:"/mall/sale-management",
        icon:"cog",
        component:mallSale
      },
      {
        name:"课程管理",
        href:"/mall/course-management",
        icon:"cog",
        component:courseManagement
      },
    ]
  },
  {
    name:'测试模块',
    href:'/test',
    icon:'vials',
    component: frame,
    children:[
      {
        name:'拖拽测试',
        href:'/test/draggable',
        icon:'smoking',
        component:draggablePage
      },
      {
        name:'测试控制面板',
        href:'/test/testManage',
        icon:'smoking',
        component:testManage
      }
    ]
  },
  {
    name:"报告数据",
    href:"/reportData",
    icon:"cogs",
    component: frame,
    children:[
      {
        name:"制作报告数据",
        href:"/reportData/makeData-management",
        icon:"cog",
        component:makeReportDataByExamine
      },
      {
        name:"报告管理",
        href:"/reportData/reportList",
        icon:"cog",
        component:reportList
      },
      {
        name:"制作数据页面",
        href:"/reportData/makeData/:reportDataId",
        icon:"cog",
        hidden:true,
        component:reportData
      }
    ]
  },
  {
    name:"任务管理",
    href:"/jobs",
    icon:"cogs",
    component: frame,
    children:[
      {
        name:"任务列表",
        href:"/jobs/jobList-management",
        icon:"cog",
        component:jobs
      }
    ]
  },
  {
    name:"二维码管理",
    href:"/qrCode-management",
    icon:"regular/bookmark",
    parentComponent: frame,
    component: qrCode
  }
]
export default menuList
//
